package com.meng.menggaga.ui;

import android.os.Bundle;
import android.view.MenuItem;

import com.meng.menggaga.R;

/**
 * 设置界面
 * 
 * 程序主题选择
 * 
 * wifi开关
 * 
 * 缓存清理
 * 
 * 问题反馈
 * 
 * 分享
 * 
 * 加入我们
 * 
 * 关于
 * 
 * @author simba
 * 
 */
public class SettingActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setActionBarTitle(R.string.navigation_setting);
    }

    @Override
    protected int layoutResId() {
        return R.layout.activity_setting;
    }

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        int id = item.getItemId();
        if (id == android.R.id.home) {
            // This ID represents the Home or Up button. In the case of this
            // activity, the Up button is shown. Use NavUtils to allow users
            // to navigate up one level in the application structure. For
            // more details, see the Navigation pattern on Android Design:
            //
            // http://developer.android.com/design/patterns/navigation.html#up-vs-back
            //
            // NavUtils.navigateUpTo(this, new Intent(this, MainActivity.class));
            finish();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}
